<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.0</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script type="text/javascript" src="./js/jquery-3.3.1.min.js"></script>
    </head>
    <body>
    <div class="x-body">
            <legend>系统信息</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                        <tr>
                            <th>系统架构</th>
                            <td></td></tr>
                        <tr>
                            <th>CPU个数</th>
                            <td></td></tr>
                        <tr>
                            <th>剩余内存</th>
                            <td></td></tr>
                        <tr>
                            <th>总内存</th>
                            <td></td></tr>
                        <tr>
                            <th>服务器版本</th>
                            <td></td></tr>
                        <tr>
                            <th>服务器类型</th>
                            <td></td></tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
    </div>
    </body>
    <script>
        $.get('/admin/sysInfo',(data,status)=>{
            $('td').each((index,elem)=>{
                elem.textContent=data[index];
            });
        });
    </script>
</html>